﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using MasMembers.DAL;
namespace MasMembers
{
    public partial class MemberDialouge : Form
    {
        public MemberDialouge()
        {
            InitializeComponent();
        }
        public MainForm parent;

        private void gridMembers_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex != -1 && e.RowIndex != -1)
            {
                parent.publishAllPanelsData(((List<MemberBasicInfoEntity>)gridMembers.DataSource)[e.RowIndex]);
                gridMembers.Visible = false;

            }
        }
    }
}
